==========================================
edit xxx.cli
==========================================
Please reference  
apollo\ReadMe\diag shell\RTK_MS_SDK_DiagShell_CodingGuide_2.0.0(Chinese).doc
apollo\ReadMe\diag shell\apollo_diagshell_rules.doc

==========================================
using code gen tool   diag_xxx.c
==========================================
Please reference
apollo\sdk\src\app\diag\config\autogen_tool\readme.txt



==========================================
Add command flow
==========================================
1.Add xxx.cli in sdk\src\app\diag\config\
2.Add command in xxx.cli
3.Add #include "./xxx.cli" in diag_shell.cli
4.bؿ  
  apollo\internal\apollo\diagShellCygwin
make shell_tree 
5.Ncode gen tool   diag_xxx.c 
  apollo\sdk\src\app\diag\src\diag_xxx.c


6.קmake file
  apollo\internal\apollo\diagShellCygwin\Makefile
  N diag_xxx.o [Jmake
7.make diag (T{ewgL make all)
8. diag T{ sWcommand iH
9.}lcoding function body


==========================================
coding diag_xxx.c function body
==========================================
1.display key word

    F display string Τ@, ڭ̪display string Τ@wb
    apollo\sdk\src\app\diag\include\diag_str.h
    Yja䥦ndisplay string Цۤvdefine b̭
  
    ӨϥΤ覡jaiHѦ
    apollo\sdk\src\app\diag\src\diag_svlan.c
    Фjanbcode ̭ۤvhard codeLXstring, 
    HKHndisplay string ɷ|n
 

2. display Х diag_util_mprintf and diag_util_printf 

3. diag_util_mprintf display D

    zL diag_util_mprintf, |page \
    
    Цb檺a~call diag_util_mprintf
    lcall diag_util_printf
    
4.ϥΪutilty
[portlist]
IS_PORT_IN_PORT_MARSK(port, port_mask)

    (Nuser input ন port list)
DIAG_UTIL_EXTRACT_PORTLIST(portlist, portlist_pos)
      --> note: ثeutility ]pYJ all ä]t CPU port!!

DIAG_UTIL_EXTRACT_DSLLIST(portlist, portlist_pos)
DIAG_UTIL_EXTRACT_EXTLIST(portlist, portlist_pos)

DIAG_UTIL_PORTMASK_SCAN(portlist, port)
DIAG_UTIL_PORTMASK_UNSETSCAN(portlist, port) 


[Token utility]
TOKEN_STR(m)   
TOKEN_CHAR(m,n)
TOKEN_NUM      
  
note: ݭnW[utility report

  
5.
 set command udisplay error!
 